* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #efeff4;
}

ul {
  list-style: none;
}

.trend-svg {
  user-select: none;
  /* display: block; */
}

path {
  fill: none;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: stroke 1.6s ease-in-out forwards .3s;
}

line {
  shape-rendering: crispEdges;
}

.dot {
  cursor: pointer;
}

.path-wrap {
  /* outline: 1px solid; */
  transition: linear .3s;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.container {
  width: 1256px;
  margin: 45px auto;
}

/* 头部 */
.trend-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 45px;
}

.trend-head .label {
  display: flex;
}

.trend-head .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #3399fe;
  padding: 8px;
  margin-right: 18px;
}

.trend-head .icon svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

.trend-head .title {
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

.trend-head .title p:first-child {
  border-bottom: 1px dashed #000;
}

.search-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  height: 30px;
}

.search-notice {
  position: absolute;
  right: 0;
  top: 32px;
  width: 312px;
  height: 20px;
  font-size: 12px;
  color: #666;
}

.select-type, .date-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  border: 1px solid #c7c7c7;
  font-size: 12px;
  color: #434343;
  background-color: #fff;
  cursor: pointer;
  user-select: none;
}

.select-type {
  border-right: none;
  transform: translateX(120px);
  z-index: 1;
}

.select-type.selected {
  transform: translateX(0);
  transition: transform .2s;
}

.select-type .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 6px;
  width: 10px;
  height: 10px;
  fill: #acacac;
}

.st-dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transform: translateY(-30px) scaleX(0.8);
  opacity: 0;
  pointer-events: none;
}

.st-dropdown.show {
  transform: translateY(0) scaleX(1);
  opacity: 1;
  transition: all .2s;
  pointer-events: all;
}

.st-dropdown li {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  transition: background-color .1s;
}

.st-dropdown li:hover {
  background-color: #ebebeb;
}

.st-dropdown li:not(:last-child) {
  border-bottom: 1px solid #ececec;
}

.date-wrap {
  opacity: 0;
  transform: translateY(-60px);
  background-color: #fff;
  z-index: 1;
}

.date-wrap.show {
  opacity: 1;
  transform: translateY(0);
  transition: all .2s .22s;
}

.picker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 340px;
  border-radius: 4px;
  transform: translate(-50%, -50%) scale(0.3, 0.1);
  pointer-events: none;
  opacity: 0;
  transition: all .2s ease-out;
}

.picker.show {
  transform: translate(-60%, -20%) scale(1);
  pointer-events: all;
  opacity: 1;
}

.year-wrap, 
.month-wrap, 
.day-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  padding: 30px 25px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .22);
}

.year-wrap {
  background-color: #39373a;
}

.year-wrap .head, 
.month-wrap .head, 
.day-wrap .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: bold;
}

.year-wrap .head {
  color: #fff;
}

.ctrl {
  display: flex;
  align-items: center;
}

.ctrl .arrow-wrap {
  width: 30px;
  height: 30px;
  padding: 6px;
}

.ctrl .arrow-wrap:active {
  opacity: 0.5;
}

.ctrl .arrow-wrap:first-child {
  transform: rotate(90deg);
}

.ctrl .arrow-wrap:last-child {
  transform: rotate(-90deg);
}

.ctrl svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

.ctrl svg:disabled {
  fill: #71a8f6;
}

.text-wrap {
  display: flex;
  align-items: center;
}

.text-wrap svg {
  margin-left: 10px;
  fill: #fff;
  width: 16px;
  height: 16px;
}

.day-wrap .text-wrap svg {
  fill: #333;
}

.years {
  display: flex;
  padding: 10px 20px 20px;
  flex-wrap: wrap;
  border-top: 1px solid #fff;
  margin-top: 20px;
}

.years li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25%;
  color: #fff;
  height: 46px;
}

.years li span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 32px;
  border-radius: 32px;
}

.years li span.active {
  background-color: #1d88f1;
}

.years li span:hover {
  background-color: #77b5f1;
}

/* 月份 */
.month-wrap {
  background-color: #3d7df2;
  opacity: 0;
  pointer-events: none;
  transition: all .2s;
  transform: scale(0);
}

.month-wrap.show {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

.month-wrap .head {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.months {
  display: flex;
  padding: 10px 20px 20px;
  flex-wrap: wrap;
  border-top: 1px solid #fff;
  margin-top: 20px;
}

.months li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25%;
  color: #fff;
  height: 76px;
}

.months li span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 32px;
  border-radius: 32px;
}

.months li span.active {
  background-color: #fff;
  color: #999;
}

.months li span:hover {
  background-color: #77b5f1;
}

/* 日 */
.day-wrap {
  background-color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: all .2s;
  transform: scale(0);
}

.day-wrap .arrow-wrap svg {
  fill: #333;
}

.day-wrap .arrow-wrap svg.disabled {
  fill: #c4c2c5;
}

.day-wrap.show {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

.day-wrap .head {
  color: #040005;
  font-size: 20px;
  font-weight: bold;
}

.days {
  display: flex;
  padding: 10px 20px 20px;
  flex-wrap: wrap;
  border-top: 1px solid #333;
  margin-top: 20px;
}

.days li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 14.25%;
  color: #333;
  height: 46px;
}

.days li span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 32px;
}

.days li span.active {
  background-color: #3d7df0;
  color: #fff;
}

.days li span:hover {
  background-color: #77b5f1;
  color: #fff;
}

.search-btn {
  width: 72px;
  color: #fff;
  font-size: 12px;
  outline: none;
  border: none;
  background-color: #3399fe;
  cursor: pointer;
}

.trend-wrap {
  position: relative;
  background-color: #fff;
  height: 455px;
  padding-top: 50px;
  border-radius: 3px;
  box-shadow: 0 1px 7px rgba(0, 0, 0, .2);
  margin-bottom: 35px;
  transform-origin: top right;
  transition: all 0.4s ease-in;
}

.trend-wrap.extract {
  transform: scale(0);
  margin-bottom: 0;
  opacity: 0;
  height: 0;
  transition: transform .3s, opacity 0.3s, height 0.4s ease-out 0.35s;
}

.trend-wrap.extract + .trend-table .trend-toggle {
  opacity: 1;
  pointer-events: all;
  transition: opacity .5s ease-in .88s;
}

.rect-bg {
  opacity: 0;
}

.ratio-label .label {
  font-size: 12px;
}

.ratio-wrap .rect {
  fill: #fff;
  stroke: #ececec;
}

/* 合起走势图 */
.trend-toggle {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 102px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3399fe;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.trend-toggle svg {
  width: 16px;
  height: 12px;
  fill: #fff;
  margin-right: 6px;
}
/* 合起走势图 */


/* 提示 */
.tooltip {
  position: absolute;
  top: 0;
  left: 40%;
  background-color: #3399fe;
  width: 146px;
  height: 60px;
  border: 3px solid #fff;
  border-radius: 3px;
  margin: 0 auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  font-size: 14px;
  color: #fff;
  padding: 4px;
  opacity: 0;
  /* transition: all .2s; */
}

.tooltip:after {
  content: '';
  position: absolute;
  border-width: 18px 14px 18px 14px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
}

.caret {
  position: absolute;
  z-index: 1;
  border-width: 12px 10px 12px 10px;
  border-style: solid;
  border-color: #3399fe transparent transparent transparent;
  left: 50%;
  bottom: -23px;
  transform: translateX(-50%);
}

/* 表格 tt == trend-table*/
.trend-table {
  position: relative;
  background-color: #fff;
  padding: 0 30px 40px;
  border-radius: 3px;
  box-shadow: 0 1px 7px rgba(0, 0, 0, .2);
  transition: transform .4s ease-out .35s;
}

.trend-table .trend-toggle {
  top: -30px;
  opacity: 0;
  pointer-events: none;
}

.tt-head {
  display: flex;
}

.no-item {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #efeff4;
  height: 200px;
  color: #000;
  font-size: 14px;
}

.tt-head li {
  flex: 1;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #525252;
}

.tt-row {
  display: flex;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #d7d7d7;
  background-color: #efeff4;
}

.tt-row:first-child {
  border-top-color: #d7d7d7;
}

.tt-row li {
  position: relative;
  flex: 1;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-row li:not(:last-child):after {
  content: '';
  position: absolute;
  width: 1px;
  height: 20px;
  background-color: #ccc;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-right: 1px;
}

/* 特殊点 */
.ripple-wrap {
  position: absolute;
}

.ripple-wrap * {
  transform: scale(0);
}

.ripple-wrap.show * {
  transform: scale(1);
}

.outer {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
  transition: transform .2s 0.1s;
}

.middle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ffd7e6;
  transition: transform .2s 0.1s;
}

.inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ff0261;
  transition: transform .05s;
}

@keyframes ripple-scale {
  100% {
    transform: scale(1);
  }
}

footer {
  background-color: #fff;
}